import instance from '@/axios/index'


// 获取订单列表
export const getOrderList = async(page:any,pageNum:any) => {
        const res = await instance.get(`/Order/orderlist?page=${page}&pageNum=${pageNum}`)
       
        return res
}

// 获取订单详情
export const getOrderDetail = async(id:string) => {
        const res = await instance.get(`/Order/orderDetail?id=${id}`)
       
        return res.data.data
}

//修改详情
export const updateOrderDetail = async(data:any) => {
        const res = await instance.post(`/Order/editorder`,data)
        return res.data
}
